#pragma once

// CBookManageDlg dialog

class CGridCtrl;
class CBookManageDlg : public CDialog
{
	DECLARE_DYNAMIC(CBookManageDlg)

public:
	CBookManageDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CBookManageDlg();

// Dialog Data
	enum { IDD = IDD_BOOK_MANAGE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	void addTableTitle();
	void updateBookData();

	DECLARE_MESSAGE_MAP()
public:
	UINT m_bookDay;
	CGridCtrl* m_timeTable;
public:
	virtual BOOL OnInitDialog();
public:
	afx_msg void OnBnClickedButton1();
public:
	afx_msg void OnBnClickedButton2();
public:
	CTime m_bookDate;
public:
	CString m_areaName;
public:
	CString m_deskName;
public:
	afx_msg void OnPaint();
public:
	afx_msg void OnDtnDatetimechangeBookdate(NMHDR *pNMHDR, LRESULT *pResult);
public:
	CString m_nowDate;
public:
	CString m_nowTime;
	UINT_PTR m_timer;
public:
	afx_msg void OnTimer(UINT_PTR nIDEvent);
protected:
	bool m_isTimeChange;
	bool m_isBookChange;
public:
	afx_msg void OnDtnCloseupBookdate(NMHDR *pNMHDR, LRESULT *pResult);
public:
	afx_msg void OnBnClickedDelData();
private:
	const CRect m_tableRect;
};
